home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- #**************************************************************************
- #* *
- #* Copyright (c) 1993 Silicon Graphics, Inc. *
- #* All Rights Reserved *
- #* *
- #* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI *
- #* *
- #* The copyright notice above does not evidence any actual of intended *
- #* publication of such source code, and is an unpublished work by Silicon *
- #* Graphics, Inc. This material contains CONFIDENTIAL INFORMATION that is *
- #* the property of Silicon Graphics, Inc. Any use, duplication or *
- #* disclosure not specifically authorized by Silicon Graphics is strictly *
- #* prohibited. *
- #* *
- #* RESTRICTED RIGHTS LEGEND: *
- #* *
- #* Use, duplication or disclosure by the Government is subject to *
- #* restrictions as set forth in subdivision (c)(1)(ii) of the Rights in *
- #* Technical Data and Computer Software clause at DFARS 52.227-7013, *
- #* and/or in similar or successor clauses in the FAR, DOD or NASA FAR *
- #* Supplement. Unpublished - rights reserved under the Copyright Laws of *
- #* the United States. Contractor is SILICON GRAPHICS, INC., 2011 N. *
- #* Shoreline Blvd., Mountain View, CA 94039-7311 *
- #**************************************************************************
-
-
- DISPLAY=:0.0
- export DISPLAY
-
- # First thing, check to see if we've already started Cust Reg
- # If so, exit. If not, continue on.......
-
- # Note that this is very specific, so if the calling string changes,
- # we must change this conditional as well.
-
- found=`/sbin/ps -ef | grep "/WhatsNew/yourSystem.html" | grep -v grep`
- if [ -n "$found" ]; then
- /usr/bin/X11/xconfirm -c -B "OK" -icon progress \
- -font '-*-helvetica-medium-r-narrow--19-*-*-*-p-83-iso8859-1' \
- -t "What's New has already been started..." > /dev/null
- exit
- fi
-
-
-
-
-
-
-
- # Because we are starting from CGI, we need to reset the
- # $HOME so that Netscape can find the preferences file and
- # cache directory.
- HOME=/tmp/.systour; export HOME
- TMPDIR=/tmp; export TMPDIR
-
- if [ ! -d $HOME ]; then
- /sbin/mkdir $HOME
- fi
-
- if [ ! -d $HOME/.netscape ]; then
- /sbin/mkdir $HOME/.netscape
- fi
-
- if [ ! -d $HOME/.netscape/cache ]; then
- /sbin/mkdir $HOME/.netscape/cache
- fi
-
- # Get OutOfBox's copy of the preferences file for us to use
- /bin/cp /CDROM/misc/cgiPreferences $HOME/.netscape/preferences
- /bin/cp /CDROM/misc/cgiXdefaults $HOME/.Xdefaults
- /sbin/chown nobody.nobody $HOME/.netscape/preferences
- /sbin/chown nobody.nobody $HOME/.Xdefaults
-
-
- # Before the user starts System Setup, get rid of the lock file so
- # that we don't get an error next time we start. (Netscape only
- # removes the lock when you quit via File->Exit.)
- # The lock is actually a link, so we check for "-l"
- if [ -l $HOME/.netscape/lock ]; then
- /sbin/rm $HOME/.netscape/lock
- fi
-
- # run app in background
- `/usr/bin/X11/netscape http://localhost:8778/WhatsNew/yourSystem.html`;
- #`/usr/sbin/nr http://localhost:8778/WhatsNew/yourSystem.html`;
-
-
-
- # Print header
- /sbin/echo "Content-Type: text/html\n\n";
- /sbin/echo "<html>\n";
- /sbin/echo "<BODY BGCOLOR="#FFFFFF" TEXT="#339999">\n";
- /sbin/echo "<PRE>";
- /sbin/echo " ";
- /sbin/echo " ";
- /sbin/echo "</PRE>";
- /sbin/echo "<BLOCKQUOTE>";
- /sbin/echo "<BLOCKQUOTE>";
- /sbin/echo '<IMG SRC="file:/CDROM/systour/desktop_icons/welcome.jpg" ALIGN="LEFT" HSPACE="5" VSPACE="15">';
- /sbin/echo "<CENTER><H1>Welcome to SGI</H1></CENTER>";
- /sbin/echo "<BLOCKQUOTE>";
- /sbin/echo "<H3>";
- /sbin/echo 'Find out much more about your O2 workstation using the "Welcome to SGI"';
- /sbin/echo "web pages. You'll find the icon shown here on the desktop once you log";
- /sbin/echo "in to your workstation. If you would like a sneak preview of the";
- /sbin/echo "welcome pages, please click <A HREF="http://localhost/cgi-bin/OutOfBox/startWelcome.cgi">here</A>. (It may take a few moments for";
- /sbin/echo "the web pages to appear. Please be patient.)";
- /sbin/echo "</H3>";
- /sbin/echo "</BLOCKQUOTE>";
- /sbin/echo "</BLOCKQUOTE>";
- /sbin/echo "</BLOCKQUOTE>";
- /sbin/echo "</body>\n";
- /sbin/echo "</html>\n";
-
-
- # After the user quits System Setup, get rid of the temporary home directory
- if [ -d $HOME ]; then
- /bin/rm -rf $HOME
- fi
-